Skip to content

feat: enable multicast discovery and receive tuning in Xbox lwIP - #13

Merged
ReenigneArcher merged 1 commit into
masterfrom
codex/lwip-sunshine-networking
Nov 30, 2026
Merged

ReenigneArcher merged 1 commit into
masterfrom
codex/lwip-sunshine-networking

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Follow-up to #12. Enable IPv4 multicast reception, IGMP, mDNS responses and service discovery, and the SO_RCVTIMEO and SO_RCVBUF socket options in the Xbox lwIP package.

Increase the receive packet pools and mailbox depth to handle bursts and apply the configured thread priorities. Release receive buffers and count dropped packets when lwIP cannot accept them. Install the changes as lwip 2.2.1-2 and document package usage in pkgbuilds/lwip/README.md.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Built the SDK with MSYS2 UCRT64, verified the recipe checksums, and ran the recipe's build, check, and package functions. Verified nxdk-pkg-config resolves the staged package.
  • Built the guest test ISO against the staged package and ran it in xemu. All six tests passed. Coverage includes UDP binding, receive socket options, IGMP initialization and mDNS search registration, the full mailbox and wraparound, and the configured TCP/IP thread priority.
  • git diff --check and clang-format --dry-run --Werror on the updated smoke tests passed.
  • The xemu run had no external network peer. Multicast traffic on an original Xbox and end-to-end Sunshine streaming remain unverified.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit d4a7500 into master Nov 30, 2026
27 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/lwip-sunshine-networking branch November 30, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant